package online.flowerinsnow.minecraft.forge.nodamagefarmland;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import online.flowerinsnow.minecraft.forge.nodamagefarmland.listener.FarmlandListener;
import org.apache.logging.log4j.Logger;

@Mod(
        modid = NoDamageFarmland.MODID,
        name = NoDamageFarmland.NAME,
        version = NoDamageFarmland.VERSION
)
public class NoDamageFarmland {
    public static final String MODID = "nodamagefarmland";
    public static final String NAME = "NoDamageFarmland";
    public static final String VERSION = "1.0";

    private static Logger logger;

    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {
        logger = event.getModLog();

        MinecraftForge.EVENT_BUS.register(new FarmlandListener());
    }
}
